package com.yang.config.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @author YJH
 * @version 1.0
 * @className SecurtiyConfiguration
 * @description 增加安全配置
 * @date 2020/4/2621:06
 */
@Configuration
public class SecurtiyConfiguration extends WebSecurityConfigurerAdapter {

    // 主要用来关闭断电和安全校验
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.csrf().disable();
    }
}
